package com.baidu.health.controller;

import com.baidu.health.service.TbExpertService;
import com.baidu.health.util.ResultResponse;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by IntelliJ IDEA.
 * User: 孙新超
 *
 * @author 孙新超
 * @version 1.0
 * @date To change this template use File | Settings | File Templates.
 * @date
 */
@RestController
@RequestMapping("expert")
@Api(tags = "专家")
public class TbExpertController {
    @Autowired
    private TbExpertService service;
    @ApiOperation("专家列表")
    @PostMapping("expertlist")
    public ResultResponse expertlist(@RequestParam(defaultValue = "1")Integer page,
                                     @RequestParam(defaultValue = "3")Integer size
                                     ){
        return service.expertlist(page,size);
    }
}
